package cn.wanda.bi.sunshine.platform.server.service;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import cn.wanda.bi.sunshine.platform.server.bean.mapper.UserLabelReturnFieldMapper;
import cn.wanda.bi.sunshine.platform.server.bean.mapper.UserLabelReturnFieldMapper;
import cn.wanda.bi.sunshine.platform.server.bean.model.UserLabelReturnField;
import cn.wanda.bi.sunshine.platform.server.bean.model.UserLabelReturnFieldExample;

/**
 * Created by wangfupeng1
 */
@Service
public class UserLabelReturnFieldService {

	public static final Logger logger = LoggerFactory.getLogger(UserLabelReturnFieldService.class);

	@Autowired
	private UserLabelReturnFieldMapper userLabelReturnFieldMapper;

	@Cacheable(value="cache:userlabelreturnfield",key = "'cache:userlabelreturnfield:appid:'+#appid")
    public List<UserLabelReturnField> getUserLabelReturnFields(UserLabelReturnFieldExample userLabelReturnFieldExample,String appid){
    	return userLabelReturnFieldMapper.selectByExample(userLabelReturnFieldExample);
    }

}
